<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
		<title>发票申请-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
		<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
		//明细
		function billDisplay(id){
			var searchForm = document.searchForm;
			searchForm.action = "<s:property value='contextPath'/>/mf/core/billDisplay.do?currentPage=${currentPage}&id="+id;
			searchForm.submit();
		}
		</script>
	</head>
	<body  leftmargin='8' topmargin='8'>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
 	    </span>管理费&gt;&gt;发票申请&gt;&gt;详情
    
  	</div>
		<div class="xt_main_right_center">
		<form name="searchForm" id="searchForm" method="post" action="updateBillRemark.do">
		<input type="hidden" id="id" name="id" value="${bill.id }" />
		<input type="hidden" name="redirectUrl" value='<s:property value='redirectUrl'/>'/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td class="left-td-width-bg">
					付款方：
				</td>
				<td width="30%" class="bline" align="left">
					<s:property value="bill.paymentName"/>
				</td>
				<td class="left-td-width-bg">
					应付总计：
				</td>
				<td width="25%" class="bline" align="left">
					<s:property value="formatAmount(bill.receivableAmount)"/>
				</td>
				<td width="20%" class="left-td-width-bg" align="left">实收总计：</td>
				<td width="25%" class="bline" align="left">
					<s:property value="formatAmount(bill.factAmount)"/>
				</td>
			</tr>
			<tr>
				<td class="left-td-width-bg">
					发票号：
				</td>
				<td width="30%" class="bline" align="left">
					<s:property value="bill.billNum"/>
				</td>
				<td class="left-td-width-bg">
					发票名：
				</td>
				<td width="25%" class="bline" align="left">
					<s:property value="bill.billName"/>
				</td>
				<td width="20%" class="left-td-width-bg" align="left">实收日期：</td>
				<td width="25%" class="bline" align="left">
					<s:property value="bill.incomeDate"/>
				</td>
			</tr>
			<tr>
				<td class="left-td-width-bg">
					发票状态：
				</td>
				<td  class="bline" align="left">
					<s:property value="bill.status.name"/>
					 
				</td>
                <td class="left-td-width-bg">
					开票说明：
				</td>
				<td  class="bline" align="left"  colspan="3">
				<textarea name="billRemark" cols="50" rows="5" datatype="Require" msg="请输入开票说明 " ><s:property value="bill.billRemark"/></textarea>		 
				</td>
				
			</tr>
            <tr>
				 
				<td  class="bline" align="center"  colspan="6">
				 <input type="submit" name="button" class="btn_save" id="button" value=""/> 
				</td>
				
			</tr>

		</table>
		</form>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="25" align="left"><font color="#0066CC"><strong>发票实收列表：</strong></font></td>
	</tr>
</table> 
		<!-- 列表开始 -->	
			<table id="tab" width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
			
			  <tr> 
			    <td width="4%" class="top-td-width-bg">序号</td>
			    <td width="9%" class="top-td-width-bg"><s:if test="null != bill.financial">销售店</s:if><s:else>金融机构</s:else></td>
			    <td width="10%" class="top-td-width-bg">应收金额</td>
			    <td width="10%" class="top-td-width-bg">收取月份</td>
			    <td width="10%" class="top-td-width-bg">备注</td>
			  </tr>
			 <s:iterator value="bill.options" status="stx" >
				<tr class="data_tr" align="center" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';">
					<td  class="down-center-td-width-bg">
						<s:property value="#stx.index+1"/>
					</td>
					<s:if test="null != bill.financial">
						<td  class="down-center-td-width-bg">
							<s:property value="shop.shopName"/>
						</td>
					</s:if>
					<s:else>
						<td  class="down-center-td-width-bg">
							<s:property value="financial.name"/>
						</td>
					</s:else>
					<td  class="down-center-td-width-bg">
						<s:property value="formatAmount(amount)"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="month"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="remark"/>
					</td> 
				</tr>
			</s:iterator>
			</table>
		</div>
	</body>
</html>